
import 'package:fun4live/core/liveAnchorItem.dart';
import 'package:fun4live/core/liveCategory.dart';
import 'package:fun4live/core/livePlayQuality.dart';
import 'package:fun4live/core/liveRomeItem.dart';
import 'package:fun4live/core/liveRoomDetail.dart';
import 'package:fun4live/core/liveSearchRoomResult.dart';
import '../core/liveCategoryResult.dart';

class liveSite{
  /// 站点唯一ID
  String id = "";

  /// 站点名称
  String name = "";

  /// 站点名称
 // LiveDanmaku getDanmaku() => LiveDanmaku();
   /// 读取网站的分类
  Future<List<liveCategory>> getCategores() {
    return Future.value(<liveCategory>[]);
  }

  /// 搜索直播间
  Future<liveSearchAnchorResult> searchAnchors(String keyword,{int page = 1}){
    return Future.value(
      liveSearchAnchorResult(hasMore: false,items: <liveAnchorItem>[])
    );
  }

    /// 读取推荐的房间
  Future<liveCategoryResult> getRecommendRooms({int page = 1}) {
    return Future.value(
        liveCategoryResult(hasMore: false, items: <liveRoomItem>[]));
  }

  ///读取房间详情
  Future<LiveRoomDetail> getRoomDetail({required String roomId}){
    return Future.value(LiveRoomDetail(
      cover: "",
      online: 0,
      roomId: '',
      status: false,
      title: '',
      url: '',
      userAvatar: '',
      userName: ''
    ));
  }

  /// 读取房间清晰度
  Future<List<LivePlayQuality>> getPlayQualites(
      {required LiveRoomDetail detail}) {
    return Future.value(<LivePlayQuality>[]);
  }
  ///读取播放链接
  Future<List<String>> getPlayUrls(
    {required LiveRoomDetail detail,required LivePlayQuality quality}){
      return Future.value(<String>[]);
    }
}